/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Troy Wolf |  */

var lastID = 0;

function SelectImg(id) {
  if (lastID > 0) {
    document.getElementById(lastID).className = "thumbNormal";
  }
  document.getElementById(id).className = "thumbSelected";
  document.getElementById(0).src = document.getElementById(id).src;
  lastID = id;
}

function LoadTrigger() {
  SelectImg(1);
}


// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  LoadTrigger();
});